﻿using System;

class Program
{
    static void Main(string[] args)
    {
        GenericList<int> intList = new GenericList<int>();
        for (int x = 0; x < 10; x++)
        {
            intList.Add(x);
        }
        intList.ForEach(item => Console.WriteLine(item));
        int sum = 0;
        intList.ForEach(item => sum += item);
        Console.WriteLine("Sum: " + sum);
        int max = int.MinValue;
        intList.ForEach(item => { if (item > max) max = item; });
        Console.WriteLine("Max: " + max);
    }

}


